package com.luojiang.validator.domain;

import javax.validation.constraints.NotBlank;

/**
 * @ClassName Hobby
 * @Description
 * @Author luojiang
 * @Date 2020/11/10 19:35
 */
public class Hobby {

    private Long id;
    @NotBlank(message = "请填写爱好")
    private String like;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getLike() {
        return like;
    }

    public void setLike(String like) {
        this.like = like;
    }

    @Override
    public String toString() {
        return "Hobby{" +
                "id=" + id +
                ", like='" + like + '\'' +
                '}';
    }
}
